﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Models
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("homecount")]
    public class Homecount
    {
        
     
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true,IsIdentity = true) ]
        public int Id  { get; set;  } 
     
        /// <summary>
        /// 备  注:统计日期
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="CreateDate" ) ]
        public DateTime? CreateDate  { get; set;  } 
     
        /// <summary>
        /// 备  注:非慢病人数
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="NonChronicDisease" ) ]
        public string? NonChronicDisease  { get; set;  } 
     
        /// <summary>
        /// 备  注:慢病人数
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ChronicDisease" ) ]
        public string? ChronicDisease  { get; set;  } 
     
        /// <summary>
        /// 备  注:筛查
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Screening" ) ]
        public int? Screening  { get; set;  } 
        public int? Screening2  { get; set;  } 
     
        /// <summary>
        /// 备  注:电话
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Phone" ) ]
        public int? Phone  { get; set;  } 
     
        /// <summary>
        /// 备  注:短信
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Sms" ) ]
        public int? Sms  { get; set;  } 
     
        /// <summary>
        /// 备  注:门诊
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Outpatient" ) ]
        public int? Outpatient  { get; set;  } 
     
        /// <summary>
        /// 备  注:家庭
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Family" ) ]
        public int? Family  { get; set;  } 
     
        /// <summary>
        /// 备  注:计划
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Plans" ) ]
        public int? Plans  { get; set;  } 
     
        /// <summary>
        /// 备  注:随访人次统计周
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="FollowUp1" ) ]
        public string? FollowUp1  { get; set;  } 
     
        /// <summary>
        /// 备  注:随访人次统计月
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="FollowUp2" ) ]
        public string? FollowUp2  { get; set;  } 
     
        /// <summary>
        /// 备  注:随访人次统计年
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="FollowUp3" ) ]
        public string? FollowUp3  { get; set;  } 
     
        /// <summary>
        /// 备  注:入组占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Enrollment" ) ]
        public string? Enrollment  { get; set;  } 
     
        /// <summary>
        /// 备  注:性别占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Sex" ) ]
        public string? Sex  { get; set;  } 
     
        /// <summary>
        /// 备  注:年龄占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Age" ) ]
        public string? Age  { get; set;  } 
     
        /// <summary>
        /// 备  注:吸烟占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Smoke" ) ]
        public string? Smoke  { get; set; }

        /// <summary>
        /// 备  注:1管理员
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Type")]
        public int? Type { get; set; }


        public int? NgNumber { get; set; }
        public int? FNgNumber { get; set; }
        public string? Mmps { get; set; }
        public string? FMmps { get; set; }
    }

    [SugarTable("homecount")]
    public class Homecounts
    {


        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 备  注:统计日期
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 备  注:非慢病人数
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "NonChronicDisease")]
        public string? NonChronicDisease { get; set; }

        /// <summary>
        /// 备  注:慢病人数
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "ChronicDisease")]
        public string? ChronicDisease { get; set; }

        /// <summary>
        /// 备  注:筛查
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Screening")]
        public int? Screening { get; set; }

        /// <summary>
        /// 备  注:电话
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Phone")]
        public int? Phone { get; set; }

        /// <summary>
        /// 备  注:短信
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Sms")]
        public int? Sms { get; set; }

        /// <summary>
        /// 备  注:门诊
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Outpatient")]
        public int? Outpatient { get; set; }

        /// <summary>
        /// 备  注:家庭
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Family")]
        public int? Family { get; set; }

        /// <summary>
        /// 备  注:计划
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Plans")]
        public int? Plans { get; set; }

        /// <summary>
        /// 备  注:随访人次统计周
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "FollowUp1")]
       // public HomeData FollowUp1 { get; set; }

        /// <summary>
        /// 备  注:随访人次统计月
        /// 默认值:
        ///</summary>
        //[SugarColumn(ColumnName = "FollowUp2")]
       // public HomeData FollowUp2 { get; set; }

        /// <summary>
        /// 备  注:随访人次统计年
        /// 默认值:
        ///</summary>
        //[SugarColumn(ColumnName = "FollowUp3")]
        //public HomeData FollowUp3 { get; set; }

        /// <summary>
        /// 备  注:入组占比
        /// 默认值:
        ///</summary>
        //[SugarColumn(ColumnName = "Enrollment")]
        public string? Enrollment { get; set; }

        /// <summary>
        /// 备  注:性别占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Sex")]
        public string? Sex { get; set; }

        /// <summary>
        /// 备  注:年龄占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Age")]
        public string? Age { get; set; }

        /// <summary>
        /// 备  注:吸烟占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Smoke")]
        public string? Smoke { get; set; }

        /// <summary>
        /// 备  注:1管理员
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Type")]
        public int? Type { get; set; }


    }



    public class Homecountng
    {


        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 备  注:统计日期
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 备  注:非慢病人数
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "NonChronicDisease")]
        public string? NonChronicDisease { get; set; }

        /// <summary>
        /// 备  注:慢病人数
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "ChronicDisease")]
        public string? ChronicDisease { get; set; }

        /// <summary>
        /// 备  注:筛查
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Screening")]
        public int? Screening { get; set; }
        public int? Screening2 { get; set; }

        /// <summary>
        /// 备  注:电话
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Phone")]
        public int? Phone { get; set; }

        /// <summary>
        /// 备  注:短信
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Sms")]
        public int? Sms { get; set; }

        /// <summary>
        /// 备  注:门诊
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Outpatient")]
        public int? Outpatient { get; set; }

        /// <summary>
        /// 备  注:家庭
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Family")]
        public int? Family { get; set; }

        /// <summary>
        /// 备  注:计划
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Plans")]
        public int? Plans { get; set; }

        /// <summary>
        /// 备  注:随访人次统计周
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "FollowUp1")]
        public string? FollowUp1 { get; set; }

        /// <summary>
        /// 备  注:随访人次统计月
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "FollowUp2")]
        public string? FollowUp2 { get; set; }

        /// <summary>
        /// 备  注:随访人次统计年
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "FollowUp3")]
        public string? FollowUp3 { get; set; }

        /// <summary>
        /// 备  注:入组占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Enrollment")]
        public string? Enrollment { get; set; }

        /// <summary>
        /// 备  注:性别占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Sex")]
        public string? Sex { get; set; }

        /// <summary>
        /// 备  注:年龄占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Age")]
        public string? Age { get; set; }

        /// <summary>
        /// 备  注:吸烟占比
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Smoke")]
        public string? Smoke { get; set; }

        /// <summary>
        /// 备  注:1管理员
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Type")]
        public int? Type { get; set; }


        public int? NgNumber { get; set; }
        public int? FNgNumber { get; set; }
    }
}